package com.acme.bankapp.domain.bank;

public class Email {
	private String to;
	private String from;
	private String subject;
	private String body;
	
	
	
	/**
	 * @param to
	 * @param from
	 * @param subject
	 * @param body
	 */
	public Email(String to, String from, String subject, String body) {
		super();
		this.to = to;
		this.from = from;
		this.subject = subject;
		this.body = body;
	}
	
	public String getTo() {
		return to;
	}
	public void setTo(String to) {
		this.to = to;
	}
	public String getFrom() {
		return from;
	}
	public void setFrom(String from) {
		this.from = from;
	}
	public String getSubject() {
		return subject;
	}
	public void setSubject(String subject) {
		this.subject = subject;
	}
	public String getBody() {
		return body;
	}
	public void setBody(String body) {
		this.body = body;
	}
	
	@Override
	public String toString() {
		StringBuilder strBld = new StringBuilder();
		strBld.append("TO: ").append(this.to);
		strBld.append("\nFROM: ").append(this.from);
		strBld.append("\nSUBJECT: ").append(this.subject);
		strBld.append("\n").append(this.body);
		return strBld.toString();
	}
}
